package com.zatech.cgnci.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zatech.cgnci.project.dto.CgnciRiskQueryDTO;
import com.zatech.cgnci.project.entity.CgnciRiskDO;
import com.zatech.cgnci.project.vo.CgnciRiskClassVO;
import com.zatech.cgnci.project.vo.CgnciRiskSubTypeVO;
import com.zatech.cgnci.project.vo.CgnciRiskVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 险种基础表 Mapper 接口
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Mapper
public interface CgnciRiskMapper extends BaseMapper<CgnciRiskDO> {

    IPage<CgnciRiskVO> pageRisk(@Param("page") Page page, @Param("dto") CgnciRiskQueryDTO riskQueryDTO);

    List<CgnciRiskClassVO> listRiskClass();

    List<CgnciRiskSubTypeVO> listRiskSubType(@Param("riskClassCode") String riskClassCode, @Param("riskSubType") String riskSubType);
}
